package com.tencet.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author: @date: 2022/7/21 21:02
 * @description:
 */
@WebServlet("/withdrawal3")
public class WithdrawalServlet3 extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String number = (String)req.getSession().getAttribute("secondAccountNumber");
        req.getSession().setAttribute("card2_num",number);
        resp.getWriter().write(""+number);

    }
}